// useRouter.js
import { useRouter } from 'vue-router'

export function useRouter1() {
  const router = useRouter();

  const goToHome = () => {
    router.push('/home');
  };

  const goToDocumentUpload = () => {
    router.push('/document-upload');
  };

  const goToKnowledgeBaseManagement = () => {
    router.push('/knowledge-base-management');
  };

  const goToMemberCenter = () => {
    router.push('/member-center');
  };

  const goToNotificationSettings = () => {
    router.push('/notification-settings');
  };

  const goToOrder = () => {
    router.push('/order');
  };

  const goToPointsManagement = () => {
    router.push('/points-management');
  };

  const goToSecuritySettings = () => {
    router.push('/security-settings');
  };

  const goToUser = () => {
    router.push('/');
  };

  const goToAiChat = () => {
    console.log("hello")
    router.push('/ai-chat');
  };

  const goToAiDrawing = () => {
    router.push('/ai-drawing');
  };

  const goToProduct = () => {
    router.push('/product-display')
  }

  const goToForgotPassword = () => {
    router.push('/forgot-password')
  }

  return {
    goToAiChat,
    goToAiDrawing,
    goToProduct,
    goToHome,
    goToDocumentUpload,
    goToKnowledgeBaseManagement,
    goToMemberCenter,
    goToNotificationSettings,
    goToOrder,
    goToPointsManagement,
    goToSecuritySettings,
    goToUser,
    goToForgotPassword,
  };
}
